﻿   
 
using System;
using System.Threading.Tasks;
using System.Linq.Expressions;
 
using Oliving.Edge.Model;
using Oliving.Edge.Model.Dto;
using Oliving.Edge.Model.Models;
using Oliving.Edge.IServices;
using Oliving.Edge.IRepository;
using Oliving.Edge.Services.BASE;


namespace Oliving.Edge.Services{
                public partial class DTSN_TongDaoServices : BaseServices<DTSN_TongDao>, IDTSN_TongDaoServices
    {
        IDTSN_TongDaoRepository _dal;
        public DTSN_TongDaoServices(IDTSN_TongDaoRepository dal)
        {
            this._dal = dal;
            base.BaseDal = dal;
        } 
    
                public async Task<PageModel<DTSN_TongDaoPageDto>> QueryPageList(
                    Expression<Func<DTSN_TongDao, bool>> whereExpression,
                    int intPageIndex = 1,
                    int intPageSize = 20,
                    string strOrderByFileds = null)
                    {
                        var page = await _dal.QueryPageList(whereExpression, intPageIndex, intPageSize, strOrderByFileds);
                        return page;
                    } 
            

    }
}
     
